#include "Public/InitD3D.h"
#include "public/Box.h"
#include "Public/MulShapes.h"


int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance,
	PSTR cmdLine, int showCmd)
{
	// Enable run-time memory check for debug builds.
#if defined(DEBUG) | defined(_DEBUG)
	_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif

	try
	{
		//InitD3D theApp(hInstance);
		//Box theApp(hInstance);
		MulShapes theApp(hInstance);
		if (!theApp.Initialize())
			return 0;

		return theApp.Run();
	}
	//catch (DxException& e)
	catch (const char* msg)
	{
		//MessageBox(nullptr, e.ToString().c_str(), L"HR Failed", MB_OK);
		return 0;
	}
}

